#ifndef STUDENT_ONFO_
#define STUDENT_ONFO_

#define LENGTH_ 30


#include <iostream>
#include <fstream>
#include <string>

struct StuInfo
{
    std::string name;
    long int ID;
    double math;
    double english;
    double cplusplus;
    double total;
};

enum class Subject
{
    MATH = 0,
    ENGLISH = 1,
    CPLUSPLUS = 2,
    TOTAL = 3,
    ID_ = 4,
    NAME = 5,
    ALL = 6
};

// Start menu
void StartMenu();

// end
void End();

// input
int InputInfo(StuInfo &stu);

// save file
bool SaveInfo(const char * filename, const StuInfo info[], int lengt);

// show
void ShowInfo(const StuInfo& stu, const Subject subject);

// show ALL
void ShowAll(const StuInfo& stu);

// check
void CheckNum();

#endif
